package com.woniu.dao;

import com.woniu.pojo.Business;
import com.woniu.pojo.Businessdto;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BusinessdtoMapper {

    @Select("select bs.nickname,bs.address,bi.url,bs.id from person_user pu,areainfo ai,business_info bs,business_image bi where pu.plot_id=ai.id and bs.plot_id=ai.id and bi.business_info_id=bs.id and pu.id=#{value}")
    List<Businessdto> selectBussinessByUserId(Integer userid);
}
